v2.0.2#21
Merged
Merged
Conversation
…ndling (#20) * Refactor formatAmount function and update tests for improved input handling - Enhanced the FormatAmountProps interface for clarity and added documentation. - Maintained backward compatibility with the old interface. - Improved the formatAmount function to handle various decimal formatting scenarios. - Updated tests to cover new functionality and ensure robust input validation. * Enhance formatAmount function with detailed documentation and improved formatting options - Expanded the FormatAmountProps interface with comprehensive comments and examples for better clarity. - Refined the formatAmount function to handle various edge cases, including very small amounts and custom formatting options. - Updated unit tests to validate new functionality and ensure robust error handling for invalid inputs. * Enhance formatAmount function documentation and add new test cases - Updated comments in the FormatAmountProps interface to clarify decimal formatting behavior. - Improved the formatAmount function to ensure consistent padding of decimal places based on the showLastNonZeroDecimal flag. - Added new unit tests to validate the updated formatting logic and ensure correct handling of trailing zeros. * Refactor FormatAmountProps interface and update formatAmount function - Renamed FormatAmountProps to FormatAmountPropsType for clarity. - Removed backward compatibility layer to streamline the interface. - Updated the formatAmount function to use the new interface. - Enhanced test cases with comments for better understanding of expected outputs. * Enhance formatAmount function and tests for improved formatting behavior - Introduced a new pipe utility to streamline the formatting process within the formatAmount function. - Updated the function to handle various edge cases more effectively, including better management of decimal places and negative values. - Enhanced documentation within the FormatAmountProps interface to clarify formatting options and examples. - Improved unit tests for better clarity and coverage of formatting scenarios, including handling of very small amounts and custom decimal settings. * Update package version to 2.0.2-alpha.1 in package.json * Update package version to 2.0.2 in package.json * Update CHANGELOG for v2.0.2 release date correction to 2025-06-27
arhtudormorar
approved these changes
Jun 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.